package com.maiji.cloud.service;

import com.maiji.cloud.entities.manager.User;
import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.request.ReqMetaData;
import com.maiji.cloud.request.manager.UserAddReqData;
import com.maiji.cloud.request.manager.UserUpdReqData;
import com.maiji.cloud.response.BaseMetaResDto;
import com.maiji.cloud.response.BaseResDto;
import com.maiji.cloud.response.manager.UserResData;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends IService<User>, UserDetailsService {

    BaseMetaResDto<List<UserResData>> findAllUsers(String roleId, String userName, Boolean eqRoleId, ReqMetaData metaData);

    BaseResDto updUser(UserUpdReqData data);

    BaseResDto addUser(UserAddReqData data);

}
